Func - CopyFileModule
2011/07/15 |
Basic usage of CopyFileModule. It's useful to copy files to minions.
|
|
[1] | Copy '/root/test2.txt' on Certmaster to all minions. |
[root@certmaster ~]# func "*" copyfile -f /root/test2.txt --remotepath /root/test2.txt [root@certmaster ~]# func "*" call command run "ls -l /root" | sed 's/\\n/\n/g'
('minion02',
[0,
'total 24
-rw-------. 1 root root 1274 Jul 15 21:58 anaconda-ks.cfg
-rw-r--r--. 1 root root 8681 Jul 15 21:58 install.log
-rw-r--r--. 1 root root 3094 Jul 15 21:56 install.log.syslog
-rw-r--r-- 1 root root 89 Jul 15 23:14 test2.txt
-rw------- 1 nobody nobody 0 Jul 15 23:04 test.txt
',
''])
('minion01',
[0,
'total 24
-rw-------. 1 root root 1274 Jul 15 21:58 anaconda-ks.cfg
-rw-r--r--. 1 root root 8681 Jul 15 21:58 install.log
-rw-r--r--. 1 root root 3094 Jul 15 21:56 install.log.syslog
-rw-r--r-- 1 root root 89 Jul 15 23:14 test2.txt
-rw------- 1 nobody nobody 0 Jul 15 23:04 test.txt
',
''])
|